import java.util.Scanner;

public class Test06 {
    public static void Sensitive(String s) {
        String[] exp = {"sb", "Sb", "sB", "SB", "tmd", "Tmd", "tMd", "tmD", "TMd", "tMD", "TmD", "TMD", "傻蛋", "sha蛋", "傻 dan"};

        for (int i = 0; i < exp.length; i++) {
            if (s.contains(exp[i])) {
                s = s.replace(exp[i], "***");
            }
        }
        System.out.println(s);

    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串以过滤");
        String s = sc.nextLine();
        Sensitive(s);
    }
}
